//
//  Enum.swift
//  SwiftDemo
//
//  Created by lizq on 16/7/5.
//  Copyright © 2016年 lizq. All rights reserved.
//

import UIKit

enum CompressPoint {
    case north
    case south
    case east
    case west
}

class Enum: NSObject {
    func action() {
        let direction = CompressPoint.north
        switch direction {
        case .north:
            print("direction is North")
        case .west:
            print("direction is West")
        }
    }
}
